package org.example.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author TonySong
 * @date 2024/7/9 0009
 * @time 17:03
 */
@FeignClient("book-model")
public interface BookFeign {


    @GetMapping("/stock")
    Boolean stock(@RequestParam("id") Integer id,@RequestParam("num") Integer num);
}
